<?php

class bbcoin_config
{
    // 进货
    const RES_TYPE_PURCHASE = 2;

    // 白条支付自动返还
    const RES_TYPE_IOUS_RETURN = 10;

    // 取消订单返还
    const RES_TYPE_CANCEL_ORDER_SENDBACK = 12;

    // 兑换
    const RES_TYPE_EXCHANGE = 13;

    // 终端兑换返还合伙人
    const RES_TYPE_EXCHANGE_SEND_DEALER = 14;

    // 终端散装进货奖励
    const RES_TYPE_BULK_REWARD = 15;

    // 影院散装进货返合伙人
    const RES_TYPE_BULK_REWARD_SEND_DEALER = 16;

    // 核销
    const RES_TYPE_VERIFICATION_REWARD = 6;

    public static function res_type_index() {
        return array_to_filelds_assoc('id', _model('bbcoin_type')->getList(array('status' => 1)));
    }
}